package com.koutao.stguava.basicutilities;

import com.google.common.collect.Ordering;
import com.koutao.stguava.bean.User;

import java.util.Arrays;

/**
 * Author:   koutao(301601)
 * Date:     2020/9/14 10:48
 * Description: TODO
 */
public class OrderingDemo {

    public static void main(String[] args) {
        Ordering<Comparable> ordering = Ordering.natural();
        Arrays.asList(
                new User(1, "a", 1),
                new User(2, "b", 2),
                new User(3, "c", 3),
                new User(4, "d", 4),
                new User(5, "e", 5)
        );
    }
}
